/*
 * @Author: shijianxin
 * @Date: 2022-04-15 09:51:16
 * @Description: 入口文件
 */

import "reflect-metadata";
import Express from "express";
import MovieRouter from "./routes/MovieRoute";
import UploadRouter from "./routes/UploadRoute";

const app = Express();

app.use("/api/upload", Express.static("public/upload"));

app.use(Express.json());

app.use("/api/movie", MovieRouter);
app.use("/api/upload", UploadRouter);

app.listen(3001, () => {
  console.log("服务器启动成功");
});
